<template>
    <div>
        <h1>{{items.name}}</h1>
        <div>{{items.content}}</div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            items:{}
        }
    },
    mounted(){
        let aid = this.$route;
        aid = aid.query.id
        console.log(aid)
    //详情
    this.$axios.get('http://39.107.239.131/Tencent/public/index.php/index/index/content/aid/'+aid)
    .then(res=>{
      console.log(res)
      this.items = res.data.data[0]
    })
    }
}
</script>

<style scoped>

</style>